﻿using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace NTmdb.TestProject
{
    /// <summary>
    ///     This is a test class for TmdbPersonPreviewTest and is intended
    ///     to contain all TmdbPersonPreviewTest Unit Tests
    /// </summary>
    [TestClass]
    public class TmdbPersonPreviewTest
    {
        /// <summary>
        ///     A test for TmdbPersonPreview Constructor
        /// </summary>
        [TestMethod]
        public void TmdbPersonPreviewConstructorTest()
        {
            var target = new TmdbPersonPreview();
            Assert.IsNotNull( target );
        }

        /// <summary>
        ///     A test for IsAdultActor
        /// </summary>
        [TestMethod]
        public void IsAdultActorTest()
        {
            var target = new TmdbPersonPreview();
            bool expected = new Random().Next( 0, Int32.MaxValue ) % 2 == 0;
            bool actual;
            target.IsAdultActor = expected;
            actual = target.IsAdultActor;
            Assert.AreEqual( expected, actual );
        }

        /// <summary>
        ///     A test for Serialize & Deserialize
        /// </summary>
        [TestMethod]
        public void SerializeDeserializeTest()
        {
            Assert.Inconclusive();
        }
    }
}